<template>
  <div class="index-meet sub-margin">
    <div class="content">
      <div class="search-box">
        <el-menu
          size="small"
          :default-active="activeCode"
          class="search-menu-box"
          mode="horizontal"
          @select="onMenuClick">
          <el-menu-item v-for="(item, key) in menuInfo" :key="key" :index="key">
            {{ item.label }}
          </el-menu-item>
        </el-menu>
      </div>
      <div class="content-con" v-if="activeCode === 'list'">
        <MeetingList></MeetingList>
      </div>
      <div class="content-con" v-if="activeCode === 'self'">
        <MeetingView></MeetingView>
      </div>
    </div>
  </div>
</template>

<script>
import MeetingList from './components/meetingList'
import MeetingView from './components/meetingView'
export default {
  name: 'PSKH_MEETING_MANAGE',
  components: { MeetingList, MeetingView },
  props: {},
  data() {
    return {
      menuInfo: {
        list: {
          label: '会议列表',
          status: '0',
        },
        self: {
          label: '我的会议',
          status: '1',
        },
      },
      activeCode: 'list',
    }
  },
  watch: {},
  computed: {},
  created() {},
  mounted() {},
  methods: {
    onMenuClick(code) {
      this.activeCode = code
    },
  },
}
</script>
<style lang="scss" scoped>
@import '@styles/layout.scss';
.index-meet {
  height: 100%;
  .content {
    height: 100%;
    padding-bottom: 5px;
    display: flex;
    flex-direction: column;
    position: relative;
    .search-box {
      width: 100%;
      margin-bottom: 10px;
      .search-menu-box {
        .is-active {
          font-weight: bold;
          font-size: 16px;
        }
      }
    }
    .content-con {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
  }
}
</style>
